package com.jiajie.gsaccessingdatajpa.collection;

import java.util.HashMap;

/**
 * @author jay
 */
public class Main {

    public static void main(String[] args) {
        People p1 = new People("Jack", 12);
        System.out.println(p1.hashCode());

        HashMap<People, Integer> hashMap = new HashMap<People, Integer>();
        hashMap.put(p1, 1);

        p1.setAge(13);

        System.out.println(hashMap.get(p1));
    }
}
